import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Tag } from 'src/tag/tag.entity';
import { TagModule } from 'src/tag/tag.module';
import { TagService } from 'src/tag/tag.service';
import { Type } from 'src/type/type.entity';
import { TypeModule } from 'src/type/type.module';
import { TypeService } from 'src/type/type.service';
import { User } from 'src/user/user.entity';
import { UserModule } from 'src/user/user.module';
import { UserService } from 'src/user/user.service';
import { BlogController } from './blog.controller';
import { Blog } from './blog.entity';
import { BlogService } from './blog.service';

@Module({
  imports: [TypeOrmModule.forFeature([Blog, Type, Tag, User]), TypeModule, TagModule, UserModule],
  controllers: [BlogController],
  providers: [BlogService,TypeService,TagService,UserService]
})
export class BlogModule {}
